<template>
	<view style="display: flex;width: 100vw; height: 100vh;align-items: center;justify-content: center;flex-direction: column;">
		<view style="margin-bottom: 30upx;">跳转中，请稍后...</view>
		<button type="primary" @click="navigateToss" style="font-size:30upx;padding: 10upx 20upx;">手动跳转</button>
	</view>
</template>

<script>
	export default {
		name: 'middle',
		data() {
			return {
				option: ''
			};
		},
		onLoad(option) {
			if(option) {
				this.option = option
				this.navigateToss()
			} else { uni.navigateBack() }
		},
		methods: {
			navigateToss() {
				const { bizToken, redirectUrl, type } = this.option
				uni.navigateToMiniProgram({
					appId: 'wx1cf2708c2de46337', // 公证签小程序APPID
					path: '/pages/face/index?bizToken=' + bizToken, // 刷脸页面地址
					complete(res) {
						uni.navigateBack()
					}
				})
			}
		}
	}
</script>

<style lang="scss" scoped>

</style>
